package com.hengpeng.itfin.persist;

import java.util.Date;
import java.util.List;

import com.hengpeng.common.persist.NestedSimplyDao;
import com.hengpeng.itfinbase.persist.Payment;

/**
 * 充值取现DAO
 * 
 * @author weiyuan
 *
 */
public interface PaymentDao extends NestedSimplyDao<Payment> {
    /**
     * 更新状态
     * 
     * @param oldStatus
     * @param newStatus
     * @param updateTime
     * @param overTime
     * @param chargemoney
     * @param orderId
     * @return
     */
    public int updateStatus(Payment.PayStatus oldStatus, Payment.PayStatus newStatus, Date updateTime, Date overTime,
            Long chargemoney, Long orderId);

    /**
     * 查询列表
     * 
     * @param type
     * @param status
     * @return
     */
    public List<Payment> queryList(Payment.PaymentType type, Payment.PayStatus status);
}
